3.1265 \(\int \frac{\cot ^6(c+d x) \csc (c+d x)}{(a+b \sin (c+d x))^2} \, dx\)

Optimal. Leaf size=480 \[ \frac{2 b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^{3/2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a^8 d}+\frac{b \left (-170 a^2 b^2+61 a^4+105 b^4\right ) \cot (c+d x)}{15 a^7 d}+\frac{\left (-90 a^4 b^2+200 a^2 b^4+5 a^6-112 b^6\right ) \tanh ^{-1}(\cos (c+d x))}{16 a^8 d}-\frac{\left (-61 a^2 b^2+16 a^4+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}+\frac{\left (-52 a^2 b^2+15 a^4+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (-86 a^2 b^2+27 a^4+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (-20 a^2 b^2+5 a^4+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))} \]

[Out]

(2*b*(2*a^2 - 7*b^2)*(a^2 - b^2)^(3/2)*ArcTan[(b + a*Tan[(c + d*x)/2])/Sqrt[a^2 - b^2]])/(a^8*d) + ((5*a^6 - 9
0*a^4*b^2 + 200*a^2*b^4 - 112*b^6)*ArcTanh[Cos[c + d*x]])/(16*a^8*d) + (b*(61*a^4 - 170*a^2*b^2 + 105*b^4)*Cot
[c + d*x])/(15*a^7*d) - ((27*a^4 - 86*a^2*b^2 + 56*b^4)*Cot[c + d*x]*Csc[c + d*x])/(16*a^6*d) + ((15*a^4 - 52*
a^2*b^2 + 35*b^4)*Cot[c + d*x]*Csc[c + d*x]^2)/(15*a^5*b*d) - ((16*a^4 - 61*a^2*b^2 + 42*b^4)*Cot[c + d*x]*Csc
[c + d*x]^3)/(24*a^4*b^2*d) - (Cot[c + d*x]*Csc[c + d*x]^2)/(3*b*d*(a + b*Sin[c + d*x])) + (a*Cot[c + d*x]*Csc
[c + d*x]^3)/(6*b^2*d*(a + b*Sin[c + d*x])) + ((5*a^4 - 20*a^2*b^2 + 14*b^4)*Cot[c + d*x]*Csc[c + d*x]^3)/(10*
a^3*b^2*d*(a + b*Sin[c + d*x])) + (7*b*Cot[c + d*x]*Csc[c + d*x]^4)/(30*a^2*d*(a + b*Sin[c + d*x])) - (Cot[c +
 d*x]*Csc[c + d*x]^5)/(6*a*d*(a + b*Sin[c + d*x]))

________________________________________________________________________________________

Rubi [A]  time = 1.9592, antiderivative size = 480, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.259, Rules used = {2896, 3055, 3001, 3770, 2660, 618, 204} \[ \frac{2 b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^{3/2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a^8 d}+\frac{b \left (-170 a^2 b^2+61 a^4+105 b^4\right ) \cot (c+d x)}{15 a^7 d}+\frac{\left (-90 a^4 b^2+200 a^2 b^4+5 a^6-112 b^6\right ) \tanh ^{-1}(\cos (c+d x))}{16 a^8 d}-\frac{\left (-61 a^2 b^2+16 a^4+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}+\frac{\left (-52 a^2 b^2+15 a^4+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (-86 a^2 b^2+27 a^4+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (-20 a^2 b^2+5 a^4+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))} \]

Antiderivative was successfully verified.

[In]

Int[(Cot[c + d*x]^6*Csc[c + d*x])/(a + b*Sin[c + d*x])^2,x]

[Out]

(2*b*(2*a^2 - 7*b^2)*(a^2 - b^2)^(3/2)*ArcTan[(b + a*Tan[(c + d*x)/2])/Sqrt[a^2 - b^2]])/(a^8*d) + ((5*a^6 - 9
0*a^4*b^2 + 200*a^2*b^4 - 112*b^6)*ArcTanh[Cos[c + d*x]])/(16*a^8*d) + (b*(61*a^4 - 170*a^2*b^2 + 105*b^4)*Cot
[c + d*x])/(15*a^7*d) - ((27*a^4 - 86*a^2*b^2 + 56*b^4)*Cot[c + d*x]*Csc[c + d*x])/(16*a^6*d) + ((15*a^4 - 52*
a^2*b^2 + 35*b^4)*Cot[c + d*x]*Csc[c + d*x]^2)/(15*a^5*b*d) - ((16*a^4 - 61*a^2*b^2 + 42*b^4)*Cot[c + d*x]*Csc
[c + d*x]^3)/(24*a^4*b^2*d) - (Cot[c + d*x]*Csc[c + d*x]^2)/(3*b*d*(a + b*Sin[c + d*x])) + (a*Cot[c + d*x]*Csc
[c + d*x]^3)/(6*b^2*d*(a + b*Sin[c + d*x])) + ((5*a^4 - 20*a^2*b^2 + 14*b^4)*Cot[c + d*x]*Csc[c + d*x]^3)/(10*
a^3*b^2*d*(a + b*Sin[c + d*x])) + (7*b*Cot[c + d*x]*Csc[c + d*x]^4)/(30*a^2*d*(a + b*Sin[c + d*x])) - (Cot[c +
 d*x]*Csc[c + d*x]^5)/(6*a*d*(a + b*Sin[c + d*x]))

Rule 2896

Int[cos[(e_.) + (f_.)*(x_)]^6*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)
, x_Symbol] :> Simp[(Cos[e + f*x]*(d*Sin[e + f*x])^(n + 1)*(a + b*Sin[e + f*x])^(m + 1))/(a*d*f*(n + 1)), x] +
 (Dist[1/(a^2*b^2*d^2*(n + 1)*(n + 2)*(m + n + 5)*(m + n + 6)), Int[(d*Sin[e + f*x])^(n + 2)*(a + b*Sin[e + f*
x])^m*Simp[a^4*(n + 1)*(n + 2)*(n + 3)*(n + 5) - a^2*b^2*(n + 2)*(2*n + 1)*(m + n + 5)*(m + n + 6) + b^4*(m +
n + 2)*(m + n + 3)*(m + n + 5)*(m + n + 6) + a*b*m*(a^2*(n + 1)*(n + 2) - b^2*(m + n + 5)*(m + n + 6))*Sin[e +
 f*x] - (a^4*(n + 1)*(n + 2)*(4 + n)*(n + 5) + b^4*(m + n + 2)*(m + n + 4)*(m + n + 5)*(m + n + 6) - a^2*b^2*(
n + 1)*(n + 2)*(m + n + 5)*(2*n + 2*m + 13))*Sin[e + f*x]^2, x], x], x] - Simp[(b*(m + n + 2)*Cos[e + f*x]*(d*
Sin[e + f*x])^(n + 2)*(a + b*Sin[e + f*x])^(m + 1))/(a^2*d^2*f*(n + 1)*(n + 2)), x] - Simp[(a*(n + 5)*Cos[e +
f*x]*(d*Sin[e + f*x])^(n + 3)*(a + b*Sin[e + f*x])^(m + 1))/(b^2*d^3*f*(m + n + 5)*(m + n + 6)), x] + Simp[(Co
s[e + f*x]*(d*Sin[e + f*x])^(n + 4)*(a + b*Sin[e + f*x])^(m + 1))/(b*d^4*f*(m + n + 6)), x]) /; FreeQ[{a, b, d
, e, f, m, n}, x] && NeQ[a^2 - b^2, 0] && IntegersQ[2*m, 2*n] && NeQ[n, -1] && NeQ[n, -2] && NeQ[m + n + 5, 0]
 && NeQ[m + n + 6, 0] &&  !IGtQ[m, 0]

Rule 3055

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*s
in[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> -Simp[((A*b^2 - a*b*B + a^2*C)*Cos[e +
 f*x]*(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^(n + 1))/(f*(m + 1)*(b*c - a*d)*(a^2 - b^2)), x] + Dis
t[1/((m + 1)*(b*c - a*d)*(a^2 - b^2)), Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[(m + 1)*(b
*c - a*d)*(a*A - b*B + a*C) + d*(A*b^2 - a*b*B + a^2*C)*(m + n + 2) - (c*(A*b^2 - a*b*B + a^2*C) + (m + 1)*(b*
c - a*d)*(A*b - a*B + b*C))*Sin[e + f*x] - d*(A*b^2 - a*b*B + a^2*C)*(m + n + 3)*Sin[e + f*x]^2, x], x], x] /;
 FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && Lt
Q[m, -1] && ((EqQ[a, 0] && IntegerQ[m] &&  !IntegerQ[n]) ||  !(IntegerQ[2*n] && LtQ[n, -1] && ((IntegerQ[n] &&
  !IntegerQ[m]) || EqQ[a, 0])))

Rule 3001

Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.)
+ (f_.)*(x_)])), x_Symbol] :> Dist[(A*b - a*B)/(b*c - a*d), Int[1/(a + b*Sin[e + f*x]), x], x] + Dist[(B*c - A
*d)/(b*c - a*d), Int[1/(c + d*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0]
 && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 2660

Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> With[{e = FreeFactors[Tan[(c + d*x)/2], x]}, Dis
t[(2*e)/d, Subst[Int[1/(a + 2*b*e*x + a*e^2*x^2), x], x, Tan[(c + d*x)/2]/e], x]] /; FreeQ[{a, b, c, d}, x] &&
 NeQ[a^2 - b^2, 0]

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\cot ^6(c+d x) \csc (c+d x)}{(a+b \sin (c+d x))^2} \, dx &=-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\int \frac{\csc ^5(c+d x) \left (12 \left (20 a^4-65 a^2 b^2+42 b^4\right )-12 a b \left (5 a^2-2 b^2\right ) \sin (c+d x)-60 \left (3 a^4-10 a^2 b^2+7 b^4\right ) \sin ^2(c+d x)\right )}{(a+b \sin (c+d x))^2} \, dx}{360 a^2 b^2}\\ &=-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\int \frac{\csc ^5(c+d x) \left (60 \left (16 a^6-77 a^4 b^2+103 a^2 b^4-42 b^6\right )-12 a b \left (10 a^4-17 a^2 b^2+7 b^4\right ) \sin (c+d x)-144 \left (5 a^6-25 a^4 b^2+34 a^2 b^4-14 b^6\right ) \sin ^2(c+d x)\right )}{a+b \sin (c+d x)} \, dx}{360 a^3 b^2 \left (a^2-b^2\right )}\\ &=-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\int \frac{\csc ^4(c+d x) \left (-288 b \left (15 a^6-67 a^4 b^2+87 a^2 b^4-35 b^6\right )+36 a b^2 \left (15 a^4-29 a^2 b^2+14 b^4\right ) \sin (c+d x)+180 b \left (16 a^6-77 a^4 b^2+103 a^2 b^4-42 b^6\right ) \sin ^2(c+d x)\right )}{a+b \sin (c+d x)} \, dx}{1440 a^4 b^2 \left (a^2-b^2\right )}\\ &=\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\int \frac{\csc ^3(c+d x) \left (540 b^2 \left (27 a^6-113 a^4 b^2+142 a^2 b^4-56 b^6\right )-36 a b^3 \left (83 a^4-153 a^2 b^2+70 b^4\right ) \sin (c+d x)-576 b^2 \left (15 a^6-67 a^4 b^2+87 a^2 b^4-35 b^6\right ) \sin ^2(c+d x)\right )}{a+b \sin (c+d x)} \, dx}{4320 a^5 b^2 \left (a^2-b^2\right )}\\ &=-\frac{\left (27 a^4-86 a^2 b^2+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\int \frac{\csc ^2(c+d x) \left (-576 b^3 \left (61 a^6-231 a^4 b^2+275 a^2 b^4-105 b^6\right )-36 a b^2 \left (75 a^6-449 a^4 b^2+654 a^2 b^4-280 b^6\right ) \sin (c+d x)+540 b^3 \left (27 a^6-113 a^4 b^2+142 a^2 b^4-56 b^6\right ) \sin ^2(c+d x)\right )}{a+b \sin (c+d x)} \, dx}{8640 a^6 b^2 \left (a^2-b^2\right )}\\ &=\frac{b \left (61 a^4-170 a^2 b^2+105 b^4\right ) \cot (c+d x)}{15 a^7 d}-\frac{\left (27 a^4-86 a^2 b^2+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\int \frac{\csc (c+d x) \left (-540 b^2 \left (5 a^8-95 a^6 b^2+290 a^4 b^4-312 a^2 b^6+112 b^8\right )+540 a b^3 \left (27 a^6-113 a^4 b^2+142 a^2 b^4-56 b^6\right ) \sin (c+d x)\right )}{a+b \sin (c+d x)} \, dx}{8640 a^7 b^2 \left (a^2-b^2\right )}\\ &=\frac{b \left (61 a^4-170 a^2 b^2+105 b^4\right ) \cot (c+d x)}{15 a^7 d}-\frac{\left (27 a^4-86 a^2 b^2+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\left (b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^2\right ) \int \frac{1}{a+b \sin (c+d x)} \, dx}{a^8}-\frac{\left (5 a^6-90 a^4 b^2+200 a^2 b^4-112 b^6\right ) \int \csc (c+d x) \, dx}{16 a^8}\\ &=\frac{\left (5 a^6-90 a^4 b^2+200 a^2 b^4-112 b^6\right ) \tanh ^{-1}(\cos (c+d x))}{16 a^8 d}+\frac{b \left (61 a^4-170 a^2 b^2+105 b^4\right ) \cot (c+d x)}{15 a^7 d}-\frac{\left (27 a^4-86 a^2 b^2+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}+\frac{\left (2 b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^2\right ) \operatorname{Subst}\left (\int \frac{1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (c+d x)\right )\right )}{a^8 d}\\ &=\frac{\left (5 a^6-90 a^4 b^2+200 a^2 b^4-112 b^6\right ) \tanh ^{-1}(\cos (c+d x))}{16 a^8 d}+\frac{b \left (61 a^4-170 a^2 b^2+105 b^4\right ) \cot (c+d x)}{15 a^7 d}-\frac{\left (27 a^4-86 a^2 b^2+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}-\frac{\left (4 b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^2\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac{1}{2} (c+d x)\right )\right )}{a^8 d}\\ &=\frac{2 b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^{3/2} \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a^8 d}+\frac{\left (5 a^6-90 a^4 b^2+200 a^2 b^4-112 b^6\right ) \tanh ^{-1}(\cos (c+d x))}{16 a^8 d}+\frac{b \left (61 a^4-170 a^2 b^2+105 b^4\right ) \cot (c+d x)}{15 a^7 d}-\frac{\left (27 a^4-86 a^2 b^2+56 b^4\right ) \cot (c+d x) \csc (c+d x)}{16 a^6 d}+\frac{\left (15 a^4-52 a^2 b^2+35 b^4\right ) \cot (c+d x) \csc ^2(c+d x)}{15 a^5 b d}-\frac{\left (16 a^4-61 a^2 b^2+42 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{24 a^4 b^2 d}-\frac{\cot (c+d x) \csc ^2(c+d x)}{3 b d (a+b \sin (c+d x))}+\frac{a \cot (c+d x) \csc ^3(c+d x)}{6 b^2 d (a+b \sin (c+d x))}+\frac{\left (5 a^4-20 a^2 b^2+14 b^4\right ) \cot (c+d x) \csc ^3(c+d x)}{10 a^3 b^2 d (a+b \sin (c+d x))}+\frac{7 b \cot (c+d x) \csc ^4(c+d x)}{30 a^2 d (a+b \sin (c+d x))}-\frac{\cot (c+d x) \csc ^5(c+d x)}{6 a d (a+b \sin (c+d x))}\\ \end{align*}

Mathematica [A]  time = 1.6191, size = 447, normalized size = 0.93 \[ \frac{15360 b \left (2 a^2-7 b^2\right ) \left (a^2-b^2\right )^{3/2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )+480 \left (90 a^4 b^2-200 a^2 b^4-5 a^6+112 b^6\right ) \log \left (\sin \left (\frac{1}{2} (c+d x)\right )\right )+480 \left (-90 a^4 b^2+200 a^2 b^4+5 a^6-112 b^6\right ) \log \left (\cos \left (\frac{1}{2} (c+d x)\right )\right )-\frac{2 a \cot (c+d x) \csc ^6(c+d x) \left (12620 a^3 b^3 \sin (c+d x)-6590 a^3 b^3 \sin (3 (c+d x))+1430 a^3 b^3 \sin (5 (c+d x))+488 a^4 b^2 \cos (6 (c+d x))-1360 a^2 b^4 \cos (6 (c+d x))-8 \left (-1289 a^4 b^2+2830 a^2 b^4+35 a^6-1575 b^6\right ) \cos (2 (c+d x))+\left (-3844 a^4 b^2+8720 a^2 b^4+330 a^6-5040 b^6\right ) \cos (4 (c+d x))-6956 a^4 b^2+15280 a^2 b^4-3942 a^5 b \sin (c+d x)+1967 a^5 b \sin (3 (c+d x))-571 a^5 b \sin (5 (c+d x))+590 a^6-8400 a b^5 \sin (c+d x)+4200 a b^5 \sin (3 (c+d x))-840 a b^5 \sin (5 (c+d x))+840 b^6 \cos (6 (c+d x))-8400 b^6\right )}{a \csc (c+d x)+b}}{7680 a^8 d} \]

Antiderivative was successfully verified.

[In]

Integrate[(Cot[c + d*x]^6*Csc[c + d*x])/(a + b*Sin[c + d*x])^2,x]

[Out]

(15360*b*(2*a^2 - 7*b^2)*(a^2 - b^2)^(3/2)*ArcTan[(b + a*Tan[(c + d*x)/2])/Sqrt[a^2 - b^2]] + 480*(5*a^6 - 90*
a^4*b^2 + 200*a^2*b^4 - 112*b^6)*Log[Cos[(c + d*x)/2]] + 480*(-5*a^6 + 90*a^4*b^2 - 200*a^2*b^4 + 112*b^6)*Log
[Sin[(c + d*x)/2]] - (2*a*Cot[c + d*x]*Csc[c + d*x]^6*(590*a^6 - 6956*a^4*b^2 + 15280*a^2*b^4 - 8400*b^6 - 8*(
35*a^6 - 1289*a^4*b^2 + 2830*a^2*b^4 - 1575*b^6)*Cos[2*(c + d*x)] + (330*a^6 - 3844*a^4*b^2 + 8720*a^2*b^4 - 5
040*b^6)*Cos[4*(c + d*x)] + 488*a^4*b^2*Cos[6*(c + d*x)] - 1360*a^2*b^4*Cos[6*(c + d*x)] + 840*b^6*Cos[6*(c +
d*x)] - 3942*a^5*b*Sin[c + d*x] + 12620*a^3*b^3*Sin[c + d*x] - 8400*a*b^5*Sin[c + d*x] + 1967*a^5*b*Sin[3*(c +
 d*x)] - 6590*a^3*b^3*Sin[3*(c + d*x)] + 4200*a*b^5*Sin[3*(c + d*x)] - 571*a^5*b*Sin[5*(c + d*x)] + 1430*a^3*b
^3*Sin[5*(c + d*x)] - 840*a*b^5*Sin[5*(c + d*x)]))/(b + a*Csc[c + d*x]))/(7680*a^8*d)

________________________________________________________________________________________

Maple [B]  time = 0.198, size = 1048, normalized size = 2.2 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^6*csc(d*x+c)^7/(a+b*sin(d*x+c))^2,x)

[Out]

3/128/d/a^2/tan(1/2*d*x+1/2*c)^4-5/16/d/a^2*ln(tan(1/2*d*x+1/2*c))+7/48/d/a^3*tan(1/2*d*x+1/2*c)^3*b+1/384/d/a
^2*tan(1/2*d*x+1/2*c)^6-1/384/d/a^2/tan(1/2*d*x+1/2*c)^6+15/128/d/a^2*tan(1/2*d*x+1/2*c)^2-15/128/d/a^2/tan(1/
2*d*x+1/2*c)^2+4/d*b/a^2/(a^2-b^2)^(1/2)*arctan(1/2*(2*a*tan(1/2*d*x+1/2*c)+2*b)/(a^2-b^2)^(1/2))+32/d*b^5/a^6
/(a^2-b^2)^(1/2)*arctan(1/2*(2*a*tan(1/2*d*x+1/2*c)+2*b)/(a^2-b^2)^(1/2))-3/128/d/a^2*tan(1/2*d*x+1/2*c)^4+1/6
/d/a^5*b^3/tan(1/2*d*x+1/2*c)^3+3/d*b^5/a^7/tan(1/2*d*x+1/2*c)-1/80/d/a^3*b*tan(1/2*d*x+1/2*c)^5+3/64/d/a^4*ta
n(1/2*d*x+1/2*c)^4*b^2+7/d/a^8*ln(tan(1/2*d*x+1/2*c))*b^6-3/64/d/a^4/tan(1/2*d*x+1/2*c)^4*b^2-5/8/d/a^6/tan(1/
2*d*x+1/2*c)^2*b^4-1/6/d/a^5*tan(1/2*d*x+1/2*c)^3*b^3+5/8/d/a^6*tan(1/2*d*x+1/2*c)^2*b^4-3/d/a^7*b^5*tan(1/2*d
*x+1/2*c)+2/d/a^7*b^6/(tan(1/2*d*x+1/2*c)^2*a+2*tan(1/2*d*x+1/2*c)*b+a)+1/80/d/a^3*b/tan(1/2*d*x+1/2*c)^5-11/8
/d/a^3*tan(1/2*d*x+1/2*c)*b+2/d/a^3/(tan(1/2*d*x+1/2*c)^2*a+2*tan(1/2*d*x+1/2*c)*b+a)*b^2+45/8/d/a^4*ln(tan(1/
2*d*x+1/2*c))*b^2+11/8/d*b/a^3/tan(1/2*d*x+1/2*c)+2/d/a^8*b^7/(tan(1/2*d*x+1/2*c)^2*a+2*tan(1/2*d*x+1/2*c)*b+a
)*tan(1/2*d*x+1/2*c)-14/d/a^8*b^7/(a^2-b^2)^(1/2)*arctan(1/2*(2*a*tan(1/2*d*x+1/2*c)+2*b)/(a^2-b^2)^(1/2))-22/
d*b^3/a^4/(a^2-b^2)^(1/2)*arctan(1/2*(2*a*tan(1/2*d*x+1/2*c)+2*b)/(a^2-b^2)^(1/2))+2/d/a^4/(tan(1/2*d*x+1/2*c)
^2*a+2*tan(1/2*d*x+1/2*c)*b+a)*tan(1/2*d*x+1/2*c)*b^3-4/d*b^5/a^6/(tan(1/2*d*x+1/2*c)^2*a+2*tan(1/2*d*x+1/2*c)
*b+a)*tan(1/2*d*x+1/2*c)-3/4/d/a^4*b^2*tan(1/2*d*x+1/2*c)^2+9/2/d/a^5*b^3*tan(1/2*d*x+1/2*c)-4/d*b^4/a^5/(tan(
1/2*d*x+1/2*c)^2*a+2*tan(1/2*d*x+1/2*c)*b+a)+3/4/d/a^4/tan(1/2*d*x+1/2*c)^2*b^2-25/2/d/a^6*ln(tan(1/2*d*x+1/2*
c))*b^4-7/48/d/a^3*b/tan(1/2*d*x+1/2*c)^3-9/2/d*b^3/a^5/tan(1/2*d*x+1/2*c)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^6*csc(d*x+c)^7/(a+b*sin(d*x+c))^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [B]  time = 8.74573, size = 6056, normalized size = 12.62 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^6*csc(d*x+c)^7/(a+b*sin(d*x+c))^2,x, algorithm="fricas")

[Out]

[1/480*(32*(61*a^5*b^2 - 170*a^3*b^4 + 105*a*b^6)*cos(d*x + c)^7 + 2*(165*a^7 - 3386*a^5*b^2 + 8440*a^3*b^4 -
5040*a*b^6)*cos(d*x + c)^5 - 80*(5*a^7 - 94*a^5*b^2 + 218*a^3*b^4 - 126*a*b^6)*cos(d*x + c)^3 + 240*((2*a^5*b
- 9*a^3*b^3 + 7*a*b^5)*cos(d*x + c)^6 - 2*a^5*b + 9*a^3*b^3 - 7*a*b^5 - 3*(2*a^5*b - 9*a^3*b^3 + 7*a*b^5)*cos(
d*x + c)^4 + 3*(2*a^5*b - 9*a^3*b^3 + 7*a*b^5)*cos(d*x + c)^2 + ((2*a^4*b^2 - 9*a^2*b^4 + 7*b^6)*cos(d*x + c)^
6 - 2*a^4*b^2 + 9*a^2*b^4 - 7*b^6 - 3*(2*a^4*b^2 - 9*a^2*b^4 + 7*b^6)*cos(d*x + c)^4 + 3*(2*a^4*b^2 - 9*a^2*b^
4 + 7*b^6)*cos(d*x + c)^2)*sin(d*x + c))*sqrt(-a^2 + b^2)*log(-((2*a^2 - b^2)*cos(d*x + c)^2 - 2*a*b*sin(d*x +
 c) - a^2 - b^2 - 2*(a*cos(d*x + c)*sin(d*x + c) + b*cos(d*x + c))*sqrt(-a^2 + b^2))/(b^2*cos(d*x + c)^2 - 2*a
*b*sin(d*x + c) - a^2 - b^2)) + 30*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c) - 15*(5*a^7 - 9
0*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6 - (5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^6 + 3*(5*a^7
 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^4 - 3*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos
(d*x + c)^2 + (5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7 - (5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*c
os(d*x + c)^6 + 3*(5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^4 - 3*(5*a^6*b - 90*a^4*b^3 + 20
0*a^2*b^5 - 112*b^7)*cos(d*x + c)^2)*sin(d*x + c))*log(1/2*cos(d*x + c) + 1/2) + 15*(5*a^7 - 90*a^5*b^2 + 200*
a^3*b^4 - 112*a*b^6 - (5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^6 + 3*(5*a^7 - 90*a^5*b^2 +
200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^4 - 3*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^2 + (5
*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7 - (5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^6 +
3*(5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^4 - 3*(5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*
b^7)*cos(d*x + c)^2)*sin(d*x + c))*log(-1/2*cos(d*x + c) + 1/2) - 2*((571*a^6*b - 1430*a^4*b^3 + 840*a^2*b^5)*
cos(d*x + c)^5 - 40*(23*a^6*b - 68*a^4*b^3 + 42*a^2*b^5)*cos(d*x + c)^3 + 15*(27*a^6*b - 86*a^4*b^3 + 56*a^2*b
^5)*cos(d*x + c))*sin(d*x + c))/(a^9*d*cos(d*x + c)^6 - 3*a^9*d*cos(d*x + c)^4 + 3*a^9*d*cos(d*x + c)^2 - a^9*
d + (a^8*b*d*cos(d*x + c)^6 - 3*a^8*b*d*cos(d*x + c)^4 + 3*a^8*b*d*cos(d*x + c)^2 - a^8*b*d)*sin(d*x + c)), 1/
480*(32*(61*a^5*b^2 - 170*a^3*b^4 + 105*a*b^6)*cos(d*x + c)^7 + 2*(165*a^7 - 3386*a^5*b^2 + 8440*a^3*b^4 - 504
0*a*b^6)*cos(d*x + c)^5 - 80*(5*a^7 - 94*a^5*b^2 + 218*a^3*b^4 - 126*a*b^6)*cos(d*x + c)^3 - 480*((2*a^5*b - 9
*a^3*b^3 + 7*a*b^5)*cos(d*x + c)^6 - 2*a^5*b + 9*a^3*b^3 - 7*a*b^5 - 3*(2*a^5*b - 9*a^3*b^3 + 7*a*b^5)*cos(d*x
 + c)^4 + 3*(2*a^5*b - 9*a^3*b^3 + 7*a*b^5)*cos(d*x + c)^2 + ((2*a^4*b^2 - 9*a^2*b^4 + 7*b^6)*cos(d*x + c)^6 -
 2*a^4*b^2 + 9*a^2*b^4 - 7*b^6 - 3*(2*a^4*b^2 - 9*a^2*b^4 + 7*b^6)*cos(d*x + c)^4 + 3*(2*a^4*b^2 - 9*a^2*b^4 +
 7*b^6)*cos(d*x + c)^2)*sin(d*x + c))*sqrt(a^2 - b^2)*arctan(-(a*sin(d*x + c) + b)/(sqrt(a^2 - b^2)*cos(d*x +
c))) + 30*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c) - 15*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 -
 112*a*b^6 - (5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^6 + 3*(5*a^7 - 90*a^5*b^2 + 200*a^3*b
^4 - 112*a*b^6)*cos(d*x + c)^4 - 3*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^2 + (5*a^6*b -
90*a^4*b^3 + 200*a^2*b^5 - 112*b^7 - (5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^6 + 3*(5*a^6*
b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^4 - 3*(5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(
d*x + c)^2)*sin(d*x + c))*log(1/2*cos(d*x + c) + 1/2) + 15*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6 - (5*
a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^6 + 3*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*
cos(d*x + c)^4 - 3*(5*a^7 - 90*a^5*b^2 + 200*a^3*b^4 - 112*a*b^6)*cos(d*x + c)^2 + (5*a^6*b - 90*a^4*b^3 + 200
*a^2*b^5 - 112*b^7 - (5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^6 + 3*(5*a^6*b - 90*a^4*b^3 +
 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^4 - 3*(5*a^6*b - 90*a^4*b^3 + 200*a^2*b^5 - 112*b^7)*cos(d*x + c)^2)*sin(
d*x + c))*log(-1/2*cos(d*x + c) + 1/2) - 2*((571*a^6*b - 1430*a^4*b^3 + 840*a^2*b^5)*cos(d*x + c)^5 - 40*(23*a
^6*b - 68*a^4*b^3 + 42*a^2*b^5)*cos(d*x + c)^3 + 15*(27*a^6*b - 86*a^4*b^3 + 56*a^2*b^5)*cos(d*x + c))*sin(d*x
 + c))/(a^9*d*cos(d*x + c)^6 - 3*a^9*d*cos(d*x + c)^4 + 3*a^9*d*cos(d*x + c)^2 - a^9*d + (a^8*b*d*cos(d*x + c)
^6 - 3*a^8*b*d*cos(d*x + c)^4 + 3*a^8*b*d*cos(d*x + c)^2 - a^8*b*d)*sin(d*x + c))]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**6*csc(d*x+c)**7/(a+b*sin(d*x+c))**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.34454, size = 994, normalized size = 2.07 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^6*csc(d*x+c)^7/(a+b*sin(d*x+c))^2,x, algorithm="giac")

[Out]

-1/1920*(120*(5*a^6 - 90*a^4*b^2 + 200*a^2*b^4 - 112*b^6)*log(abs(tan(1/2*d*x + 1/2*c)))/a^8 - 3840*(2*a^6*b -
 11*a^4*b^3 + 16*a^2*b^5 - 7*b^7)*(pi*floor(1/2*(d*x + c)/pi + 1/2)*sgn(a) + arctan((a*tan(1/2*d*x + 1/2*c) +
b)/sqrt(a^2 - b^2)))/(sqrt(a^2 - b^2)*a^8) - 3840*(a^4*b^3*tan(1/2*d*x + 1/2*c) - 2*a^2*b^5*tan(1/2*d*x + 1/2*
c) + b^7*tan(1/2*d*x + 1/2*c) + a^5*b^2 - 2*a^3*b^4 + a*b^6)/((a*tan(1/2*d*x + 1/2*c)^2 + 2*b*tan(1/2*d*x + 1/
2*c) + a)*a^8) - (5*a^10*tan(1/2*d*x + 1/2*c)^6 - 24*a^9*b*tan(1/2*d*x + 1/2*c)^5 - 45*a^10*tan(1/2*d*x + 1/2*
c)^4 + 90*a^8*b^2*tan(1/2*d*x + 1/2*c)^4 + 280*a^9*b*tan(1/2*d*x + 1/2*c)^3 - 320*a^7*b^3*tan(1/2*d*x + 1/2*c)
^3 + 225*a^10*tan(1/2*d*x + 1/2*c)^2 - 1440*a^8*b^2*tan(1/2*d*x + 1/2*c)^2 + 1200*a^6*b^4*tan(1/2*d*x + 1/2*c)
^2 - 2640*a^9*b*tan(1/2*d*x + 1/2*c) + 8640*a^7*b^3*tan(1/2*d*x + 1/2*c) - 5760*a^5*b^5*tan(1/2*d*x + 1/2*c))/
a^12 - (1470*a^6*tan(1/2*d*x + 1/2*c)^6 - 26460*a^4*b^2*tan(1/2*d*x + 1/2*c)^6 + 58800*a^2*b^4*tan(1/2*d*x + 1
/2*c)^6 - 32928*b^6*tan(1/2*d*x + 1/2*c)^6 + 2640*a^5*b*tan(1/2*d*x + 1/2*c)^5 - 8640*a^3*b^3*tan(1/2*d*x + 1/
2*c)^5 + 5760*a*b^5*tan(1/2*d*x + 1/2*c)^5 - 225*a^6*tan(1/2*d*x + 1/2*c)^4 + 1440*a^4*b^2*tan(1/2*d*x + 1/2*c
)^4 - 1200*a^2*b^4*tan(1/2*d*x + 1/2*c)^4 - 280*a^5*b*tan(1/2*d*x + 1/2*c)^3 + 320*a^3*b^3*tan(1/2*d*x + 1/2*c
)^3 + 45*a^6*tan(1/2*d*x + 1/2*c)^2 - 90*a^4*b^2*tan(1/2*d*x + 1/2*c)^2 + 24*a^5*b*tan(1/2*d*x + 1/2*c) - 5*a^
6)/(a^8*tan(1/2*d*x + 1/2*c)^6))/d